package com.wages.project.system.attence.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.wages.framework.aspectj.lang.annotation.Excel;
import com.wages.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * attence对象 attence
 *
 * @author wages
 * @date 2021-05-20
 */
public class Attence extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /**  */
    @Excel(name = "")
    private Long userId;

    /**  */
    @Excel(name = "")
    private String loginName;

    /** 上班打卡 */
    @Excel(name = "上班打卡")
    private Integer clockIn;

    /** 下班打卡 */
    @Excel(name = "下班打卡")
    private Integer clockOut;

    /** 上班打卡时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "上班打卡时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date clockInTime;

    /** 下班打卡时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "下班打卡时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date clockOutTime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setLoginName(String loginName)
    {
        this.loginName = loginName;
    }

    public String getLoginName()
    {
        return loginName;
    }
    public void setClockIn(Integer clockIn)
    {
        this.clockIn = clockIn;
    }

    public Integer getClockIn()
    {
        return clockIn;
    }
    public void setClockOut(Integer clockOut)
    {
        this.clockOut = clockOut;
    }

    public Integer getClockOut()
    {
        return clockOut;
    }
    public void setClockInTime(Date clockInTime)
    {
        this.clockInTime = clockInTime;
    }

    public Date getClockInTime()
    {
        return clockInTime;
    }
    public void setClockOutTime(Date clockOutTime)
    {
        this.clockOutTime = clockOutTime;
    }

    public Date getClockOutTime()
    {
        return clockOutTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("loginName", getLoginName())
            .append("clockIn", getClockIn())
            .append("clockOut", getClockOut())
            .append("clockInTime", getClockInTime())
            .append("clockOutTime", getClockOutTime())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
